export default (time)=>{
    let oDate = new Date(time*1); //通过时间戳，创建时间对象
    let y = oDate.getFullYear();
    let m = (oDate.getMonth() + 1 + "").padStart(2,"0");
    let d = (oDate.getDate()+"").padStart(2,"0");
    let h = (oDate.getHours()+"").padStart(2,"0");
    let mi = (oDate.getMinutes()+"").padStart(2,"0");
    let s = (oDate.getSeconds()+"").padStart(2,"0");
    return y+'-'+m+'-'+d + " " + h+":"+mi+":"+s
}